package com.cw.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author ly
 * @since 2021-08-25
 */
@ApiModel(value ="电子开单-门诊病人申请记录--胡思聪-2011.05.17")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ER_APPLY_OUT")
public class ErApplyOut implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "门诊病人申请编号")
    @TableId("MZSQBH")
    private BigDecimal mzsqbh;

    @ApiModelProperty(value = "系统病人ID,处方号，为了实现手工单补开改为可为空20171121")
    @ExcelProperty(value = "BRCFH")
    @TableField("BRCFH")
    private String brcfh;

    @ApiModelProperty(value = "门诊号，就诊卡号，为了实现手工单补开改为可为空20171121")
    @ExcelProperty(value = "BRMZH")
    @TableField("BRMZH")
    private String brmzh;

    @ApiModelProperty(value = "挂号科室名称，为了实现手工单补开改为可为空20171121")
    @ExcelProperty(value = "BRKSMC")
    @TableField("BRKSMC")
    private String brksmc;

    @ApiModelProperty(value = "挂号科室代码，为了实现手工单补开改为可为空20171121")
    @ExcelProperty(value = "BRKSDM")
    @TableField("BRKSDM")
    private String brksdm;

    @ApiModelProperty(value = "姓名")
    @ExcelProperty(value = "BRXM")
    @TableField("BRXM")
    private String brxm;

    @ApiModelProperty(value = "性别")
    @ExcelProperty(value = "BRXB")
    @TableField("BRXB")
    private String brxb;

    @ApiModelProperty(value = "出生日期")
    @ExcelProperty(value = "CSRQ")
    @TableField("CSRQ")
    private LocalDateTime csrq;

    @ApiModelProperty(value = "年龄")
    @ExcelProperty(value = "BRNL")
    @TableField("BRNL")
    private BigDecimal brnl;

    @ApiModelProperty(value = "年龄单位，岁，月")
    @ExcelProperty(value = "NLDW")
    @TableField("NLDW")
    private String nldw;

    @ApiModelProperty(value = "申请科室代码")
    @ExcelProperty(value = "SQKSDM")
    @TableField("SQKSDM")
    private String sqksdm;

    @ApiModelProperty(value = "申请科室名称")
    @ExcelProperty(value = "SQKSMC")
    @TableField("SQKSMC")
    private String sqksmc;

    @ApiModelProperty(value = "申请人代码")
    @ExcelProperty(value = "SQRDM")
    @TableField("SQRDM")
    private String sqrdm;

    @ApiModelProperty(value = "申请人姓名")
    @ExcelProperty(value = "SQRXM")
    @TableField("SQRXM")
    private String sqrxm;

    @ApiModelProperty(value = "执行科室代码")
    @ExcelProperty(value = "ZXKSDM")
    @TableField("ZXKSDM")
    private String zxksdm;

    @ApiModelProperty(value = "执行科室名称")
    @ExcelProperty(value = "ZXKSMC")
    @TableField("ZXKSMC")
    private String zxksmc;

    @ApiModelProperty(value = "申请时间")
    @ExcelProperty(value = "SQSJ")
    @TableField("SQSJ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sqsj;

    @ApiModelProperty(value = "申请状态0暂存1申请2预约3执行4完成5作废6退回")
    @ExcelProperty(value = "SQZT")
    @TableField("SQZT")
    private String sqzt;

    @ApiModelProperty(value = "预约日期")
    @ExcelProperty(value = "YYRQ")
    @TableField("YYRQ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime yyrq;

    @ApiModelProperty(value = "预约时段")
    @ExcelProperty(value = "YYSD")
    @TableField("YYSD")
    private String yysd;

    @ApiModelProperty(value = "执行时间")
    @ExcelProperty(value = "ZXSJ")
    @TableField("ZXSJ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime zxsj;

    @ApiModelProperty(value = "执行人代码")
    @ExcelProperty(value = "ZXRDM")
    @TableField("ZXRDM")
    private String zxrdm;

    @ApiModelProperty(value = "执行人姓名")
    @ExcelProperty(value = "ZXRXM")
    @TableField("ZXRXM")
    private String zxrxm;

    @ApiModelProperty(value = "记帐标记0未记帐1部分记帐2记帐完成")
    @ExcelProperty(value = "JZBJ")
    @TableField("JZBJ")
    private String jzbj;

    @ApiModelProperty(value = "完成标记")
    @ExcelProperty(value = "JCWCBJ")
    @TableField("JCWCBJ")
    private String jcwcbj;

    @ApiModelProperty(value = "作废标记")
    @ExcelProperty(value = "ZFBJ")
    @TableField("ZFBJ")
    private String zfbj;

    @ApiModelProperty(value = "作废人代码")
    @ExcelProperty(value = "ZFRDM")
    @TableField("ZFRDM")
    private String zfrdm;

    @ApiModelProperty(value = "作废人姓名")
    @ExcelProperty(value = "ZFRXM")
    @TableField("ZFRXM")
    private String zfrxm;

    @ApiModelProperty(value = "临床诊断")
    @ExcelProperty(value = "LCZD")
    @TableField("LCZD")
    private String lczd;

    @ApiModelProperty(value = "导引信息")
    @ExcelProperty(value = "DYXX")
    @TableField("DYXX")
    private String dyxx;

    @ApiModelProperty(value = "申请方备注")
    @ExcelProperty(value = "SQBZ")
    @TableField("SQBZ")
    private String sqbz;

    @ApiModelProperty(value = "执行方备注")
    @ExcelProperty(value = "ZXBZ")
    @TableField("ZXBZ")
    private String zxbz;

    @ApiModelProperty(value = "检查项目")
    @ExcelProperty(value = "JCXM")
    @TableField("JCXM")
    private String jcxm;

    @ApiModelProperty(value = "检查类别")
    @ExcelProperty(value = "JCLB")
    @TableField("JCLB")
    private String jclb;

    @ApiModelProperty(value = "病史信息， 直接存储")
    @ExcelProperty(value = "BSXX")
    @TableField("BSXX")
    private String bsxx;

    @ApiModelProperty(value = "检查类型编号")
    @ExcelProperty(value = "LXBH")
    @TableField("LXBH")
    private BigDecimal lxbh;

    @ApiModelProperty(value = "病史信息， 用XML存储")
    @ExcelProperty(value = "XBSXX")
    @TableField("XBSXX")
    private String xbsxx;

    @ApiModelProperty(value = "检查项目，用XML存储")
    @ExcelProperty(value = "XJCXM")
    @TableField("XJCXM")
    private String xjcxm;

    @ExcelProperty(value = "PATIENT_NO")
    @TableField("PATIENT_NO")
    private String patientNo;

    @ApiModelProperty(value = "预约时段编号")
    @ExcelProperty(value = "YYSDBH")
    @TableField("YYSDBH")
    private BigDecimal yysdbh;

    @ApiModelProperty(value = "预约标记，1 已预约 0 未预约")
    @ExcelProperty(value = "YYBJ")
    @TableField("YYBJ")
    private String yybj;

    @ApiModelProperty(value = "检查单打印时间")
    @ExcelProperty(value = "JCDDYSJ")
    @TableField("JCDDYSJ")
    private LocalDateTime jcddysj;

    @ApiModelProperty(value = "检查单打印人工号")
    @ExcelProperty(value = "JCDDYRDM")
    @TableField("JCDDYRDM")
    private String jcddyrdm;

    @ApiModelProperty(value = "检查单打印人姓名")
    @ExcelProperty(value = "JCDDYRMC")
    @TableField("JCDDYRMC")
    private String jcddyrmc;

    @ApiModelProperty(value = "检查地点")
    @ExcelProperty(value = "JCDD")
    @TableField("JCDD")
    private String jcdd;

    @ApiModelProperty(value = "执行标记")
    @ExcelProperty(value = "ZXBJ")
    @TableField("ZXBJ")
    private String zxbj;

    @ApiModelProperty(value = "药物临床试验项目编号")
    @ExcelProperty(value = "YPSYXMBH")
    @TableField("YPSYXMBH")
    private String ypsyxmbh;

    @ApiModelProperty(value = "药物临床试验项目代码")
    @ExcelProperty(value = "YPSYXMDM")
    @TableField("YPSYXMDM")
    private String ypsyxmdm;

    @ApiModelProperty(value = "是否床边检查")
    @ExcelProperty(value = "CBBJ")
    @TableField("CBBJ")
    private String cbbj;

    @ApiModelProperty(value = "转运方式，轮椅平车步行")
    @ExcelProperty(value = "ZYFS")
    @TableField("ZYFS")
    private String zyfs;

    @ApiModelProperty(value = "是否家属陪同")
    @ExcelProperty(value = "JSPTBJ")
    @TableField("JSPTBJ")
    private String jsptbj;

    @ApiModelProperty(value = "护士审核时间，由ipmomdod触发器生成")
    @ExcelProperty(value = "SHSJ")
    @TableField("SHSJ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime shsj;

    @ApiModelProperty(value = "检查类型名称，对应er_checktype的lxmc_xs")
    @ExcelProperty(value = "LXMC_XS")
    @TableField("LXMC_XS")
    private String lxmcXs;

    @ApiModelProperty(value = "检查目的")
    @ExcelProperty(value = "JCMD")
    @TableField("JCMD")
    private String jcmd;

    @ApiModelProperty(value = "是否怀孕,1是2否，其它值表示未填写")
    @ExcelProperty(value = "HYPB")
    @TableField("HYPB")
    private String hypb;

    @ApiModelProperty(value = "申请来源，医生还是医技")
    @ExcelProperty(value = "SQLY")
    @TableField("SQLY")
    private String sqly;

    @ApiModelProperty(value = "病人来源，门诊、急诊、住院、外院")
    @ExcelProperty(value = "BRLY")
    @TableField("BRLY")
    private String brly;

    @ApiModelProperty(value = "医保类别，苏州、吴中、相城、新区、园区")
    @ExcelProperty(value = "YBLB")
    @TableField("YBLB")
    private String yblb;

    @ApiModelProperty(value = "医保个人编号,20170922调 为20B")
    @ExcelProperty(value = "YBBH")
    @TableField("YBBH")
    private String ybbh;

    @ApiModelProperty(value = "预约类别编号，对应er_periodtype")
    @ExcelProperty(value = "YYLBBH")
    @TableField("YYLBBH")
    private BigDecimal yylbbh;

    @ApiModelProperty(value = "是否已经空腹")
    @ExcelProperty(value = "SFKF")
    @TableField("SFKF")
    private String sfkf;

    @ExcelProperty(value = "JCDBH")
    @TableField("JCDBH")
    private BigDecimal jcdbh;

    @ApiModelProperty(value = "排队操作时间，写到排队表的时间")
    @ExcelProperty(value = "PDSJ")
    @TableField("PDSJ")
    private LocalDateTime pdsj;

    @ApiModelProperty(value = "排队操作人")
    @ExcelProperty(value = "PDR")
    @TableField("PDR")
    private String pdr;

    @ApiModelProperty(value = "特殊分类标识，目前主要用于超声2012-4-18")
    @ExcelProperty(value = "TSFLBS")
    @TableField("TSFLBS")
    private String tsflbs;

    @ApiModelProperty(value = "心电系统申请单状态2012-12-13")
    @ExcelProperty(value = "JCZTDM_ECG")
    @TableField("JCZTDM_ECG")
    private BigDecimal jcztdmEcg;

    @ApiModelProperty(value = "预约操作人代码20130822")
    @ExcelProperty(value = "YYCZRDM")
    @TableField("YYCZRDM")
    private String yyczrdm;

    @ApiModelProperty(value = "预约 操作人姓名20130822")
    @ExcelProperty(value = "YYCZRMC")
    @TableField("YYCZRMC")
    private String yyczrmc;

    @ApiModelProperty(value = "预约 操作时间20130822")
    @ExcelProperty(value = "YYCZSJ")
    @TableField("YYCZSJ")
    private LocalDateTime yyczsj;

    @ApiModelProperty(value = "是否选择专家诊断，如果选择了可以在收费时提示挂超声专家号，1表示选择--2013-9-23")
    @ExcelProperty(value = "XZZJ")
    @TableField("XZZJ")
    private String xzzj;

    @ApiModelProperty(value = "联系电话20170814")
    @ExcelProperty(value = "LXDH")
    @TableField("LXDH")
    private String lxdh;

    @ApiModelProperty(value = "联系人20170814")
    @ExcelProperty(value = "LXR")
    @TableField("LXR")
    private String lxr;

    @ApiModelProperty(value = "占用时段编号20170907")
    @ExcelProperty(value = "ZYSDBH")
    @TableField("ZYSDBH")
    private String zysdbh;

    @ApiModelProperty(value = "执行院区2018-1-4 ，对应部门表的yard")
    @ExcelProperty(value = "ZXYQ")
    @TableField("ZXYQ")
    private String zxyq;

    @ApiModelProperty(value = "病人所在院区2018-1-4，对应部门表的yard")
    @ExcelProperty(value = "BRYQ")
    @TableField("BRYQ")
    private String bryq;

    @ApiModelProperty(value = "报到时间20180820")
    @ExcelProperty(value = "BDSJ")
    @TableField("BDSJ")
    private LocalDateTime bdsj;

    @ApiModelProperty(value = "报到地点，如自助机的IP地址20180820")
    @ExcelProperty(value = "BDDD")
    @TableField("BDDD")
    private String bddd;

    @ApiModelProperty(value = "状态提醒信息，首先为了解决因为重约导致病区护士不知情2020-01-06")
    @ExcelProperty(value = "ZTTX")
    @TableField("ZTTX")
    private String zttx;

    @ApiModelProperty(value = "病人标签，1日间手术、2院前准备、3疑似新冠,20200128")
    @ExcelProperty(value = "PATIENT_TAG")
    @TableField("PATIENT_TAG")
    private String patientTag;

    @ApiModelProperty(value = "收费人代码20200913，如果是退费则是退费人信息")
    @ExcelProperty(value = "SFRDM")
    @TableField("SFRDM")
    private String sfrdm;

    @ApiModelProperty(value = "收费人姓名20200913")
    @ExcelProperty(value = "SFRXM")
    @TableField("SFRXM")
    private String sfrxm;

    @ApiModelProperty(value = "收费人时间20200913")
    @ExcelProperty(value = "SFSJ")
    @TableField("SFSJ")
    private LocalDateTime sfsj;

    @ApiModelProperty(value = "EMR自己生成的申请号20200926")
    @ExcelProperty(value = "EMR_SQH")
    @TableField("EMR_SQH")
    private String emrSqh;

    @ApiModelProperty(value = "患者是否选择了要胶片，1表示要，0不要，主要用于放射科检查，2021-06-10")
    @ExcelProperty(value = "CPXZPB")
    @TableField("CPXZPB")
    private String cpxzpb;



}
